{strip}
{if $gBitUser->hasPermission( 'p_moderate_preform')}
	<div class="mod_menu">
		<ul>
			<li>
				<a href="{$serviceHash.content_id|displayUrl:LibertyContent}" title="Process Junk">{biticon ipackage=moderate iname=flaged iexplain="Do Moderation"}</a>
				<ul>
					{if $mod_type.spam}<li><a href="{$smarty.const.MODERATE_PKG_URL}index.php?action=unmark&for=spam&ref={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI|escape:url}&item={$serviceHash.content_id}">Unmark Spam</a></li>{/if}
					{if $mod_type.offensive}<li><a href="{$smarty.const.MODERATE_PKG_URL}index.php?action=unmark&for=offensive&ref={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI|escape:url}&item={$serviceHash.content_id}">Unmark Offensive</a></li>{/if}
					{if $mod_type.illegal}<li><a href="{$smarty.const.MODERATE_PKG_URL}index.php?action=unmark&for=illegal&ref={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI|escape:url}&item={$serviceHash.content_id}">Unmark Illegal</a></li>{/if}
					{if $serviceHash.version > 1}
						<li><a href="{$smarty.const.MODERATE_PKG_URL}index.php?action=revert&smart=true&ref={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI|escape:url}&item={$serviceHash.content_id}">Revert to Last Good Version</a></li>
						<li><a href="{$smarty.const.MODERATE_PKG_URL}index.php?action=revert&ref={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI|escape:url}&item={$serviceHash.content_id}">Revert to Previous Version</a></li>
					{/if}
					<li><a href="{$smarty.const.MODERATE_PKG_URL}index.php?action=delete&ref={$smarty.server.REQUEST_URI|escape:url}&item={$serviceHash.content_id}">Delete Page</a></li>
				</ul>
			</li>
		</ul>
	</div>
{else}
	{biticon ipackage=moderate iname=flaged iexplain="Marked For Moderation"}
{/if}
{/strip}